﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Interface
{
    /// <summary>
    /// 教职工
    /// </summary>
    public interface IJiaoZhiGong : IDependency
    {
        /// <summary>
        /// 新增职工
        /// </summary>
        /// <param name="xm"></param>
        /// <param name="xb"></param>
        /// <param name="sjh"></param>
        /// <param name="ksid"></param>
        /// <param name="zwid"></param>
        /// <returns>GUID</returns>
        string AddJiaoZhiGong(string zh, string xm, int xb, string sjh, int ksid, int zwid);
        /// <summary>
        /// 更新教职工
        /// </summary>
        /// <param name="userid"></param>
        /// <param name="xm"></param>
        /// <param name="xb"></param>
        /// <param name="sjh"></param>
        /// <param name="ksid"></param>
        /// <param name="zwid"></param>
        void UpdateJiaoZhiGong(string userid, string xm, int xb, string sjh, int ksid, int zwid);
        /// <summary>
        /// 删除教职工
        /// </summary>
        /// <param name="userid"></param>
        void DelJiaoZhiGong(string userid);
        void UpdatePassword(string username, string oldpassword, string newpassword);

        /// <summary>
        /// 获取教职工集
        /// </summary>
        /// <param name="keyword"></param>
        /// <param name="ksid"></param>
        /// <param name="zwid"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="pageTotal"></param>
        /// <returns></returns>
        string GetJiaoZhiGongs(string keyword, int ksid, int zwid, int pageIndex, int pageSize, out int pageTotal);
        /// <summary>
        /// 获取教职工详细
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        string GetJiaoZhiGongInfo(string userid);
        string GetJiaoZhiGongInfoByUsername(string username);
        void ResetPassword(string username);
    }
}
